import request from '@/utils/request'

// 查询捐款列表
export function listDonation(query) {
  return request({
    url: '/system/donation/list',
    method: 'get',
    params: query
  })
}

// 查询捐款详细
export function getDonation(dId) {
  return request({
    url: '/system/donation/' + dId,
    method: 'get'
  })
}

// 新增捐款
export function addDonation(data) {
  return request({
    url: '/system/donation',
    method: 'post',
    data: data
  })
}

// 修改捐款
export function updateDonation(data) {
  return request({
    url: '/system/donation',
    method: 'put',
    data: data
  })
}

// 删除捐款
export function delDonation(dId) {
  return request({
    url: '/system/donation/' + dId,
    method: 'delete'
  })
}
